﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.DtoWebSite.Comments.Request
{
    public class CreateCommentsRequest
    {
        /// <summary>
        /// 顶级评论id
        /// </summary>
        public string? ParentId { get; set; }

        /// <summary>
        /// 回复的id
        /// </summary>
        public string? ReplyId { get; set; }

        /// <summary>
        /// 评论类型 1文章，2恋爱日记留言，3悄悄话评论，4自述留言，5此站点留言，6树洞留言
        /// </summary>
        public int MessageType { get; set; }

        /// <summary>
        /// 外键id 例如文章id
        /// </summary>
        public string? TypeId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string UserEmail { get; set; }

        /// <summary>
        /// 用户网址
        /// </summary>
        public string? WebSite { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 是否匿名
        /// </summary>
        public bool? Anonymous { get; set; }
    }
}
